<?php

namespace App\Model\DesignPattern\Creational\Structural\Decorator;


class WhipCoffee implements Coffee
{
    protected $coffee;
    public function __construct(Coffee $coffee)
    {
        $this->coffee = $coffee;
    }

    public function getCost()
    {
        return $this->coffee->getCost() + 5;
    }

    public function getDescription()
    {
        return $this->coffee->getDescription(). '+白色恋人';
    }
}
